package srx.open.com.bean;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobDate;
import cn.bmob.v3.datatype.BmobGeoPoint;

/**
 * 发布课程的表.
 *
 * @author hailongqiu 356752238@qq.com
 */
public class CoursePublish extends BmobObject {

    private String title; // 课程标题
    private String content; // 课程内容
    private String price; // 价格.
    private BmobDate schoolTime; // 上课时间.
    private Integer browseCount; // 浏览过的人数. (浏览课程的字段)
    private User usertt; // 发布课程的用户信息. (浏览课程的查看发布课程的信息)

    private int oneId; // 课程ID one
    private int twoId; // 课程ID two
    private int threeId; // 课程ID three

    private int provinceId; // 比如:北京，四川，重庆
    private int cityId; //  比如: 成都市
    private int districtId; // 比如: 武侯区
    private String addr; // 上课地点补充.
    private BmobGeoPoint location; // 发布位置.
    private int type; // 需求类型.

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public BmobDate getSchoolTime() {
        return schoolTime;
    }

    public void setSchoolTime(BmobDate schoolTime) {
        this.schoolTime = schoolTime;
    }

    public Integer getBrowseCount() {
        return browseCount;
    }

    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }

    public User getUsertt() {
        return usertt;
    }

    public void setUsertt(User usertt) {
        this.usertt = usertt;
    }

    public int getOneId() {
        return oneId;
    }

    public void setOneId(int oneId) {
        this.oneId = oneId;
    }

    public int getTwoId() {
        return twoId;
    }

    public void setTwoId(int twoId) {
        this.twoId = twoId;
    }

    public int getThreeId() {
        return threeId;
    }

    public void setThreeId(int threeId) {
        this.threeId = threeId;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getDistrictId() {
        return districtId;
    }

    public void setDistrictId(int districtId) {
        this.districtId = districtId;
    }

    public BmobGeoPoint getLocation() {
        return location;
    }

    public void setLocation(BmobGeoPoint location) {
        this.location = location;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CoursePublish{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", price='" + price + '\'' +
                ", schoolTime=" + schoolTime +
                ", browseCount=" + browseCount +
                ", usertt=" + usertt +
                ", oneId=" + oneId +
                ", twoId=" + twoId +
                ", threeId=" + threeId +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                ", districtId=" + districtId +
                ", addr='" + addr + '\'' +
                ", location=" + location +
                ", type=" + type +
                '}';
    }

}
